package com.kitty.listener.event;

import com.kitty.game.role.model.Role;
import com.kitty.listener.BasePlayerEvent;
import com.kitty.listener.EventType;
import lombok.Getter;

/***
 * 离开地图事件
 */
@Getter
public class LeaveMapEvent extends BasePlayerEvent {
    /***
     * 离开的地图id
     */
    private int mapId;
    private Role role;


    public LeaveMapEvent(EventType evtType, Role role, int mapId ) {
        super(evtType, role);
        this.mapId = mapId;
        this.role=role;
    }
}
